package com.mxm.java;

public class ClinitTest1 {
    static class Father{
        public static int A=1;
        static {
            A=2;
        }
    }
    static class Son extends Father{
        public static int B=A;

    }

    public static void main(String[] args) {
        //加载Father类，其次加载Son
        System.out.println(Son.B);
    }
}
